//
//  CLDocumentModel.h
//  chanlin
//
//  Created by Ryan on 14-11-16.
//  Copyright (c) 2014年 chanlin. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreText/CoreText.h>
#import "CLDocEntity.h"
#define I_DOC_TEXT_MARGIN_SPACE (15.f)
#define I_DOC_CONTENT_WIDTH (GlobleWidth-2*I_DOC_TEXT_MARGIN_SPACE)
#define INHTMLElement_altFontSpace 8.f

@interface CLDocumentModel : NSObject



@property (nonatomic,strong)NSMutableAttributedString *attributeString;

@property (nonatomic,strong)NSAttributedString *titleAttributeStr;

@property (nonatomic,assign)CTFramesetterRef framesetter;

@property (nonatomic,strong)CLDocEntity *entity;

@property (nonatomic,strong)NSArray *commentsArray;

- (void)linkElement:(CLDocEntity *)entity;

- (BOOL)isReady;

- (NSString *)sourceAndTime;

@end
